<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>main</title>
<load href='__PUBLIC__/Css/admin.css' />
<load href='__PUBLIC__/Js/admin_adver.js' />
<load href="__PUBLIC__/Js/jquery-1.7.2.min.js" />
<script>
	$(document).ready(function(){
		$("select option[value=" + {$kind} + "]").attr("selected",true);
	});
</script>
</head>
<body id="main">

<div class="map">
	管理首页 &gt;&gt; 内容管理 &gt;&gt; <strong id="title">广告列表</strong>
</div>

<ol>
	<li><a href="__URL__/index" class="selected">广告列表</a></li>
	<li><a href="__URL__/add">新增广告</a></li>
</ol>
<table cellspacing="0">
	<tr><th>编号</th><th>广告标题</th><th>广告链接</th><th>广告类型</th><th>是否前台广告</th><th>操作</th></tr>
	<if condition="$list">
	<volist name="list" id="vo">
	<tr>
		<td>{$vo.id}</td>
		<td>{$vo.title}</td>
		<td>{$vo.link}</td>
		<td><switch name="vo.type"><case value="1">文字广告</case><case value="2">头部广告690x80</case><default />侧栏广告270x200</switch></td>
		<if condition="$vo.state eq 0">
		<td><span class="red">[否]</span> | <a href="__URL__/pass/id/{$vo.id}">确定</a></td>
		<else />
		<td><span class="green">[是]</span> | <a href="__URL__/cancel/id/{$vo.id}">取消</a></td>
		</if>
		<td><a href="__URL__/edit/id/{$vo.id}">查看并修改</a> | <a href="__URL__/delete/id/{$vo.id}" onclick="return confirm('你真的要删除这个广告吗？') ? true : false">删除</a></td>
	</tr>
	</volist>
	<tr><td colspan="6" style="color:blue;">( * 任何广告服务的操作，都必须生成js文件，方可在前台更新)</td></tr>
	<tr><td colspan="6">
			<input type="button" value="生成文字广告js" onclick="javascript:location.href='__URL__/updateJs/type/text'" />
			<input type="button" value="生成头部广告js" onclick="javascript:location.href='__URL__/updateJs/type/header'" />
			<input type="button" value="生成侧栏广告js" onclick="javascript:location.href='__URL__/updateJs/type/siderbar'" />
	</td></tr>
	<else />
	<tr><td colspan="6">对不起，没有任何数据</td></tr>
	</if>
</table>
<form method="get" action="__URL__/index">
<div id="page">
	{$page}
	<input type="hidden" name="action" value="show" />
	<select name="kind" style="background:#fff;border:1px solid #ccc;">
		<option value="0">默认全部</option>
		<option value="1">文字广告</option>
		<option value="2">头部广告690x80</option>
		<option value="3">侧栏广告270x200</option>
	</select>
	<input type="submit" value="查询" />
</div>
</form>
</body>
</html>